package org.learn.test;

import java.util.Scanner;

public class IfExercise03 {
    public static void main(String[] args) {
        //课堂练习
        Scanner myScanner = new Scanner(System.in);
        //接收用户输入
        System.out.println(" 请输入芝麻信用分数1-100");//提示
        int grade = myScanner.nextInt();
        //因为有四种情况，用if多分支
        if(grade >= 1 && grade <= 100) {
            if (grade == 100) {
                System.out.println("信用极好");
            } else if (80 < grade && grade <= 99) {
                System.out.println("信用优秀");
            } else if (60 < grade && grade <= 80) {
                System.out.println("信用一般");
            } else {
                System.out.println("信用不及格");
            }
        }else{
            System.out.println("你的信用分输入有误,请重新输入");
        }

    }
}
